_no_value = object()

def spam(a,b = _no_value):
    if b is _no_value:
        print('No b value supplied')

def spam1(a, b=[]): # 不要这样定义函数
    pass